package com.dming.auto;

import com.dming.auto.lib.MvpXml;
import com.dming.auto.lib.DrawableXml;

public class CreateUtils {

    public static void main(String[] args) {
//        mvp("HouTwo");
//        colorDrawable();
//        selectDrawable();
        autoSelectDrawable();
    }

    public static void mvp(String name) {
        MvpXml.init()
                .setPkgName("com.dming.autocreatecode")
                .setBaseRxActivity("com.dming.autocreatecode.framework.BaseRxActivity")
                .setBaseRxFragment("com.dming.autocreatecode.framework.BaseRxFragment")
                .setBaseRxPresenter("com.dming.autocreatecode.framework.BaseRxPresenter")
                .setIBaseView("com.dming.autocreatecode.framework.IBaseView")
                .setActivityPath("ui.activity")
                .setFragmentPath("ui.fragment")
                .setPresenterPath("p")
                .setIViewPath("i")
                .createMvp(name,true);
    }

    public static void autoSelectDrawable() {
        DrawableXml drawableXml = DrawableXml.init("app");
        drawableXml.createSelectDrawable();
    }

    public static void colorDrawable() {
        DrawableXml drawableXml = DrawableXml.init();
        drawableXml.createColorXML(5,"#888",1,"#0f0");
    }

    public static void selectDrawable() {
        DrawableXml drawableXml = DrawableXml.init();
        drawableXml.createSelectXML("test","bg_r5_888_s1_0f0","ic_launcher_background");
    }

}
